package com.huihui.springbootshiro.service;

import com.huihui.springbootshiro.entity.Perms;
import com.huihui.springbootshiro.entity.Role;
import com.huihui.springbootshiro.entity.User;

import java.util.List;

public interface UserService {

    public void register(User user);

    //根据用户名查询业务
    User findUserByName(String username);

    //根据用户名返回所有校色
    User findRolesByUserName(String username);

    //根据校色id查询权限集合
    List<Perms> findPermsByRoleId(String id);
}
